package jard.webshop.jsfbeans;
  
import javax.faces.application.FacesMessage;  
import javax.faces.bean.ManagedBean;
import javax.faces.context.FacesContext;  
import javax.faces.event.ActionEvent;  


/**
 *
 * @author tedblad
 */
  
@ManagedBean (name = "primefacesBean")
public class PrimefacesBean {  
  
    public void savePreferences(ActionEvent actionEvent){  
        
        FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, "Preferences",  "Preferences saved!");  
          
        FacesContext.getCurrentInstance().addMessage(null, message);  
    }  
}  